package com.repair.auth.exception;

import com.repair.base.exception.ErrorCode;

/**
 * @author chunyu
 * @since 2024/9/19,15:18
 */
public enum AuthErrorCode implements ErrorCode {

    CAPTCHA_ERROR(7001, "验证码错误"),
    CAPTCHA_SEND_ERROR(7003, "验证码三方调用错误"),
    CAPTCHA_TOO_MANY_REQUESTS(7002, "验证码发送频率过高，稍后再试"),
    REAL_NAME_AUTH_FILE(7003, "实名认证失败"),
    REAL_NAME_AUTH_SUCCESS(7004, "实名认证成功");

    private final Integer code;
    private final String message;

    AuthErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
